package com.exadel.googleregistrator;

import com.exadel.googleregistrator.entities.Account;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 14.08.12
 * Time: 15:38
 */
public class AccountGenerator {

    private CredentialGenerator generator;

    public Account createAccount(){
        Account account  = new Account();
        account.setFirstName(generator.generateFirstName());
        account.setLastName(generator.generateLastName());
        account.setUsername(generator.generateUsername(account.getFirstName(), account.getLastName()));
        account.setBirthDate(generator.generateBirthDate());
        account.setGender(generator.getSex());
        account.setPassword(generator.generatePassword());
        account.setCountry("United States");
        return account;
    }


}
